[#escape x as (x)!?html]

<script type="text/javascript">

$(function(){
	 _menu('.index-menu','.top-menu-xiala');	 
});

/* $(function(){
	 $(".index-menu").mouseover(function(){
		 $(this).children("ul").show();		 
	});
	 $(".index-menu").mouseout(function(){		 
		 $(this).children("ul").hide();		 
	});
	  
}); */

function _menu(parentMenu,childMenu){
	$(parentMenu).hover(function() {
		$(this).children("ul").show();	
	}, function() {
		 $(this).children("ul").hide();		
	});
}
</script>
 <!--头部-->
      <div id="top">
        <div class="top-left" ></div>
        <div class="top-right clearfix">
          <ul>
            <li><img src="_files/img/index/top-weibo-cai.png" width="24" height="21" class="float-left" /><a href="http://weibo.com/u/3733386473" target="_blank">官方微博</a></li>
            <li><img src="_files/img/index/top-weixin-cai.png" width="24" height="21" class="float-left" /><a onclick="alert('请手机关注：微信-公众号-东莞轨道交通！')">官方微信</a></li>
            <li><img src="_files/img/index/top-ditu-cai.png" width="24" height="21" class="float-left" /><a href="${ctx}/sitemap.htmx" target="_blank">网站地图</a></li>
          </ul>
          <div>
          	<form action="${ctx}/search.htmx" method="get">
				<input type="text" name="q" value="${Param.q}" class="input01"/>
				<input type="submit" value="" class="input02" />
				<!--  <input class="input01" value="请输入您想要搜索的内容" name="keyword" />
            	<input class="input02" value="" name="" /> -->
			</form>
          </div>
        </div>
      </div>
      <!--头部-end--> 
      <!--菜单-->
      <div class="menu clearfix">
		<ul>
			<li class="shouye"><a href="${ctx}/" class="nava fs14 item first[#if node?? && !node.parent??] curr[/#if]">首页</a></li>
		[@NodeList;list] [#list list as n]
		<li class="index-menu"><a href="${n.url}"
			class="nava fs14 item[#if (node.hierarchy[1])?? && node.hierarchy[1].id == n.id] curr[/#if][#if n_has_next] middle[#else] last[/#if]">${n.name}</a>
			[#if n.children?size > 0]
				<ul class="top-menu-xiala undis">
				[@NodeList parentId=n.id;childList] [#list childList as c]
			      <li><a href="${c.url}">${c.name}</a></li>
			    [/#list] [/@NodeList]
				</ul>
			[/#if]
			</li>
		[/#list] [/@NodeList]
		
	</ul>
		<div class="clear"></div>
	</div>
      <!--菜单-end-->
[/#escape]